package hlhj.fhp.checkpoint.adp

import android.webkit.WebView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import hlhj.fhp.checkpoint.R
import hlhj.fhp.checkpoint.javaBean.CheckInfoBean
import kotlinx.android.synthetic.main.aty_notice_detail.*

/**
 * Created by Never Fear   on 2018\11\16 0016.
Never More....
 */
class InfoAdp(private val datas:ArrayList<CheckInfoBean.InfoBean>) :BaseQuickAdapter<CheckInfoBean.InfoBean,BaseViewHolder>(R.layout.info_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: CheckInfoBean.InfoBean?) {
        helper?.setText(R.id.itemTitle,item?.name)
        val webView = helper?.getView<WebView>(R.id.web1)

        webView?.loadDataWithBaseURL(null, item?.content, "text/html", "UTF-8", null);
    }
}